home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OWLINC.PAK / MDICHILD.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  75 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1991, 1997 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   10.3  $
  6. //
  7. // Definition of class TMDIChild.
  8. //----------------------------------------------------------------------------
  9. #if !defined(OWL_MDICHILD_H)
  10. #define OWL_MDICHILD_H
  11.  
  12. #if !defined(OWL_FRAMEWIN_H)
  13. # include <owl/framewin.h>
  14. #endif
  15.  
  16. #if defined(BI_NAMESPACE)
  17. namespace OWL {
  18. #endif
  19.  
  20. // Generic definitions/compiler options (eg. alignment) preceeding the 
  21. // definition of classes
  22. #include <services/preclass.h>
  23.  
  24. class _OWLCLASS TMDIClient;
  25.  
  26. //
  27. // class TMDIChild
  28. // ~~~~~ ~~~~~~~~~
  29. class _OWLCLASS TMDIChild : virtual public TFrameWindow {
  30.   public:
  31.     TMDIChild(TMDIClient&     parent,
  32.               const char far* title = 0,
  33.               TWindow*        clientWnd = 0,
  34.               bool            shrinkToClient = false,
  35.               TModule*        module = 0);
  36.  
  37.     TMDIChild(HWND hWnd, TModule* module = 0);
  38.  
  39.    ~TMDIChild();
  40.  
  41.     // Override virtual methods defined by TWindow
  42.     //
  43.     bool       PreProcessMsg(MSG& msg);
  44.     bool       ShowWindow(int cmdShow);
  45.     bool       EnableWindow(bool enable);
  46.     void       Destroy(int retVal = 0);
  47.  
  48.   protected:
  49.     void       PerformCreate(int menuOrId);
  50.     TResult    DefWindowProc(uint msg, TParam1 param1, TParam2 param2);
  51.     void       EvMDIActivate(HWND hWndActivated, HWND hWndDeactivated);
  52.     bool       EvNCActivate(bool active);
  53.  
  54.   private:
  55.     // Hidden to prevent accidental copying or assignment
  56.     //
  57.     TMDIChild(const TMDIChild&);
  58.     TMDIChild& operator =(const TMDIChild&);
  59.  
  60.   DECLARE_RESPONSE_TABLE(TMDIChild);
  61.   DECLARE_STREAMABLE(_OWLCLASS, TMDIChild, 1);
  62. };
  63.  
  64. // Generic definitions/compiler options (eg. alignment) following the 
  65. // definition of classes
  66. #include <services/posclass.h>
  67.  
  68. typedef TMDIChild TMdiChild;
  69.  
  70. #if defined(BI_NAMESPACE)
  71. } // namespace OWL
  72. #endif
  73.  
  74. #endif  // OWL_MDICHILD_H
  75.